package com.xy.drink;

/**
 * @author 谢阳
 * @version 1.8.0_131
 * @date 2022/6/12 10:48
 * @description
 */
public abstract class Drink {

    private String des;//描述
    private float price = 0.0f;

    /**
     * 计算价格的方法
     * @return
     */
    public abstract float cost();

    public String getDes() {
        return des;
    }

    public void setDes(String des) {
        this.des = des;
    }

    public float getPrice() {
        return price;
    }

    public void setPrice(float price) {
        this.price = price;
    }
}
